package main;
import enums.Sex;
import enums.Speciality;


public class Student extends Person{
	
	private Speciality speciality;
	
	public Student(String firstName, String lastName, Sex sex, Speciality speciality){
		super(firstName, lastName, sex);
		this.speciality = speciality;
	}
	public Student(){
		super(null, null, Sex.MALE);
		this.speciality = Speciality.MUSIC;
	}
	public void setSpeciality(Speciality speciality){
		this.speciality = speciality;
	}
	public Speciality getSpeciality(){
		if(this.speciality == null){
			this.speciality = Speciality.MUSIC;			
		}
		return this.speciality;
	}
	public void printSudentBasicInfo(){
		System.out.println(this.getPersonsFirstName()+" "+this.getPersonsLastName()+
				"\nSpeciality: "+this.speciality.getSpeciality()+"\nSex:"+super._Sex().getSex());		
	}
	public String getSudentBasicInfo(){
		String sudentBasicInfo = this.getPersonsFirstName()+","+this.getPersonsLastName()+
				","+this.speciality.getSpeciality()+","+this._Sex().getSex();	
		return sudentBasicInfo;
	}
}